<template>
    <div class="dialog dialog-2vcode text-center">
      <div class="dialog-header"><span><i class="oblique-line"></i> 微光 <i class="oblique-line"></i></span></div>
      <div class="dialog-body">
        <img src="./img/2vcode.png" alt="">
        <p>长按关注微信公众号接收最新动态</p>
      </div>
      <div class="dialog-option" @click="closeDialog">
        关闭
      </div>
    </div>
</template>

<script>
export default {
  methods: {
      closeDialog(){
          this.$emit('close-2vcode-dialog');
      }
  }
};
</script>
<style lang="scss" scoped>
@import '@/assets/config.scss';
.dialog-2vcode {

  background-color: #fff;
  border-radius: 12px;
  z-index: 150;
  overflow: hidden;

  img {
    width: 250px;
    height: 250px;
  }

  .dialog-header {
    padding: 16px 0;
    font-size: 34px;
    color: #000;
    line-height: 2;

    > span {
      padding: 0 36px;
      position: relative;
    }
  }

  .dialog-body {
    padding: 0 0 15px;
    img{ 
      width: 250px;
      height: 250px;
      vertical-align: middle; 
      
    }
    p {
      margin-top: 15px;
      font-size: 24px;
      color: #666;
      line-height: 48px;
    }
  }

  .dialog-option {
    height: 100px;
    border-top: 1px solid #f0f0f0;
    font-size: 30px;
    color:#333;
    line-height: 100px;
  }
}
</style>